package com.wenjie.original.entity.vo.SysCodeTempGroup;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;

@Data
public class SysCodeTempGroupAddVo {

    @NotNull
    private GroupInfo groupInfo;

    @NotNull
    private List<TempList> tempList;


    @Data
    public static class GroupInfo {

        @NotBlank
        @ApiModelProperty("代码组模版的名称")
        private String name;

        @ApiModelProperty("自定义参数")
        private String cusParam;

        @ApiModelProperty("描述")
        private String mark;
    }

    @Data
    public static class TempList {

        @NotBlank
        @ApiModelProperty("代码模版名")
        private String name;

        @NotBlank
        @ApiModelProperty("文件名")
        private String fileName;

        @NotBlank
        @ApiModelProperty("模版内容")
        private String value;

        @ApiModelProperty("描述")
        private String mark;

    }


}
